package combat.settlement.order.decorators;

import combat.settlement.order.Order;
import combat.settlement.order.OrderDecorator;

/**
 * @author Seon
 * @version 1.0
 * @since 2024-09-03
 */
public class RewardPointsDecorator extends OrderDecorator {

    public RewardPointsDecorator(Order order) {
        super(order);
    }

    @Override
    public double calculateFinalPrice() {
        // 可以在这里增加积分奖励逻辑
        System.out.println("You've earned reward points!");
        return decoratedOrder.calculateFinalPrice() - 10;
    }
}
